Contact
Home Electronics Software 3D Printing Miscellaneous
µServer
AIR
BluePrint
16x16 Matrix
µTetris MSP430
USB Power Monitor
WeatherDisplay
Winamp Control
CPC
AVR ISP Insulator
Logic Insulator
USB Insulator
USB UART Insulator
AVR: LCD Driver
AVR: USB Stuff
AVR: De-Bricker
Temp-O-Clock
Touch-O-Clock
Digital Analog Clock
Block Clock
Binary Clock
Module: Rambo-S
Module: INA226
current sensor
Module: Nokia LCD
Module: misc
voltage modules
Module: DS3231
RTC
Module: VS1011e
MP3 decoder
Module: OSD
Module: SD-Card
Module: USB<->UART
Auto Video Switch
Enctest
GB Camera
Robot: Gizmo
IR Remote Control
Keyboard Extender
Laser Tagger
UV Timer
Thermometer
Telephone Control
Telephone Spy
Games
Blinking Hearts
EGG Timer



picture
This project is a small board containing a CPLD and a SRAM IC. It has an SPI interface to utilize the SRAM. The CPLD is used to implement the SPI interface and address the SRAM. Only four pins are needed; this could be reduced to three if a bi-directional data line was used (like in I2C). It also has an auto-increment function. This means that the address only has to be written once in the initial three byte sequence that also contains the chip select and read/write selection. After these 3 bytes the data can be streamed in or out for any number of bytes. The CPLD is configured in a way that it does not need any external clock. The module could very easily be modified to address 4 (or even more) SRAM ICs with 512Kbytes each which would give 2Mbytes. The CPLD is programmed with the free XILINX ISE 10.1.
This project was also published in the may 2012 issue of the english Elektor magazine. If you would like to get the newest firmware version for free please write an email. The only thing I ask for is a picture of your prototype to put on this webpage and a shourt feedback.

Here is a picture of the small module. The board could be much more compact if it was made in SMD technology but it is not possible to produce such tiny PCB layouts with my homebrew equipment. This one is quite compact too. The pins are the common SPI pins CS, CLK, MOSI and MISO and the 5V power supply. The system was tested with a clockrate up to 2.2MHz but higher rates may be possible.
picture
The first 3 bytes contain bits 0-18 of the address and bit 7 of byte 3 is the read/write select (0=read/1=write). After that any number of bytes can be read/written (in the example below two bytes are transmitted). The SPI is in mode CPHA=0, CPOL=0, first bit=LSB. This means that the data is read and written on the rising edge, the data is stable during the change from low to high. This diagram was made with the program Logic Draw that offers a very simple and fast interface to make neat logic timing diagrams (including an automated signal generator).

The PCB layout and the PCB.
picture picture
The XILINX software provides a testwave generator to simulate and debug the design. This can also be used as a function diagram.

These are screenshots of the simulator diagram in XILINX ISE. The diagramm explains the funcionality. During the first three bytes the address is latched with the last falling clock. The address is incremented after each byte. When the counter overflows it jumps back to 0. The ISE project files are not freely available. This is because all other designs I have seen which have this functionallity use an external clock and cost money.

This is the setup for programming the device. I made a little adapter with JTAG interface for PC44 and PC84 devices. As the simulator and wave generator in the XILINX ISE is very accurate (see diagramm above) it is possible to do the entire debuging on the PC. The device only needs to be programmed once and with this little adapter the JTAG header can be spared in the end design.
picture
The complete schematic.
picture
The socket pinout of the XC9572 PC44.
picture
LAST
NEXT